<div class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label" ng-class="{'must':{must}}">{{check_show_lang('{title}')}}</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
		<select class="form-control" data-live-search="true" ng-class="{'must_set':{must}}" ng-disabled="{read}" ng-model="{tovalue}.{name}" ng-change="pagedata.upitem{name}($index);">
			<option value="" selected>{select_title}</option>
			<option ng-repeat="op in {pagevalue}.{options}" ng-selected="{tovalue}.{name}==op.{option_value}" value="{{op.{option_value}}}" >{{check_show_lang(op.{option_title},op.english)}}</option>
		</select>
		<div class="help-block" style="display:none;color:red;">{{check_show_lang('请输入','Please enter the')}}{{check_show_lang('{title}')}}</div>
		<div class="help-block">{help}</div>
	</div>
</div>
<script>
scope.pagedata.upitem{name}=function(index){
	if(!scope.{tovalue}.{name} || scope.{tovalue}.{name}<=0){
		var td={}
		scope.pagedata.upitemkey{name}(td);
	}else{
		var id=scope.{tovalue}.{name};
		var item=scope.{pagevalue}.{options}[id];
		item=item?item:{};
		console.log(id);console.log(item);
		console.log(scope.{pagevalue}.{options});
		console.log(scope.{pagevalue}.{options}[id]);
		scope.pagedata.upitemkey{name}(item.itemkey);
	}
}
scope.pagedata.upitemkey{name}=function(item){
	scope.{tovalue}.{itemkey}=item;
}
</script>